const axios = require('axios');
const baseUrl = require('../utils/config.js').baseUrl;
const Service = require('egg').Service;
class cinemaService extends Service {
    async list() {
        const res = await axios.get(baseUrl+'/cinema');
        return res.data;
    } 
    async detail() {
        let {id} = this.ctx.params;
        const res = await axios.get(baseUrl+'/cinema/'+id);
        return res.data;
    }
}
module.exports = cinemaService;
